@(spurning : models.domain.Question, svar: models.data.Svor)

@teacherMain(title = "Breyta spurningu") {

    <div class="container conLower">
        <div class="row">
            <div class="span12">

                <h2> Breyta eyðufyllingu</h2>

                @helper.form(action = routes.TeacherController.changedEydufyllingQuestion(), 'class -> "form-horizontal") {
                    <fieldset>

                        <input type ="hidden" name ="tegund" value = "texti">
                        <input type ="hidden" name ="spurningar_id" value = "@spurning.spurningar_id">

                        <div class="control-group">
                            <label class="control-label"> Áfangi </label>
                            <div class="controls">
                                <select class="span6" name="afangi_id" disabled>
                                    <option>@spurning.namsgrein_afanganr</option>
                                </select>
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label"> Bók </label>
                            <div class="controls">
                                <select class="span6" name="bok_id" disabled>
                                    <option>@spurning.bok_heiti</option>
                                </select>
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label"> Þyngdarstig spurningar </label>
                            <div class="controls">
                                <select id ="weightOfQuestion" name="tyngdarstig" class="span6" disabled>
                                    <option value="1">@spurning.tyngdarstig_heiti</option>
                                </select>
                            </div>
                        </div>

                        <div class="control-group">
                            <p> Lýsing á eyðufyllingunni</p>
                            <div class="controls">
                                <textarea name="eydulysing" class ="span6" placeholder="Lýsing á eyðufyllingu og möguleg svör">@spurning.texti</textarea>
                            </div>
                        </div>

                        <div class="control-group">
                            <p>Sláðu inn texta með <b> ;</b> þar sem orðið sem vantar á að fara</p>
                            <div class="controls">
                                <textarea name= "texti" class="span6" placeholder="Spurningin þín kemur hingað">@svar.svor_texti</textarea>
                            </div>
                        </div>


                        <div class="control-group">
                            <div class="form-actions">
                                <button type="submit" class="btn btn-primary" value="submit">Breyta spurningu</button>
                                <a href="@routes.TeacherController.questionBank()"> <input type="button" class="btn" value="Hætta við" title="Fara í spurningabanka" /> </a>
                            </div>
                        </div>
                    </fieldset>
                } <!--end of helper -->

            </div> <!--end of span6 in the beginning -->
        </div> <!--div class row -->
    </div> <!-- /container -->
}